<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        {{ msg }}
        <h1>{{ count>1000?'small':'big'}}</h1>
        <h2>{{21+14}}</h2>
        <h3>{{person}}</h3>
        <h4>{{person.name}}</h4>
        <h5> {{count}}</h5>
        <p>{{name}}</p>
        <div v-html="htmlStr"></div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <SCript>
        const app = new Vue({
            el: '#app',
            data: {
                msg: 'hello world',
                count: 999,
                person: {
                    name: 'zhangsan1',
                    age: 18
                },
                htmlStr: '<button>按钮</button>',
                name: 'zhangsan',
            }
        })
        console.log(app)
    </SCript>
</body>

</html>